{extends file="assets::smarty-templates::Master"|ToPath}

{block name=script}
    {script_entry_point src="Acaweb.Cev.Capacitaciones.Crear"}
{/block}

{block name="content"}

<form action="{$action}" method="post" class="form-validate">    
    <h1>Crear Capacitaci&oacute;n</h1>
    <h3>Centro de Educaci&oacute;n Virtual</h3>
    <fieldset>
        <label>Datos de la Capacitaci&oacute;n</label>
        <dl>
            <label>Nombre</label>
            <div>
                <input type="text" name="capacitacion[nombre]" class="medium required" />
                <span title="Campo Requerido" class="obligatorio"></span>
            </div>
        </dl>
        <dl>
            <label>Descripci&oacute;n</label>
            <div>
                <textarea name="capacitacion[descripcion]"></textarea>
            </div>
        </dl>
        <dl>
            <label>Capacidad</label>
            <div>
                <input type="text" name="capacitacion[capacidad]" class="small required number" />
                <span title="Campo Requerido" class="obligatorio"></span>
            </div>
        </dl>
    </fieldset>
    <fieldset>
        <label>Armar Itinerario</label>
        <dl>
            <label>D&iacute;a</label>
            <div>
                <input type="text" class="medium date" id="dia" />
            </div>
        </dl>
        <dl>
            <label>Jornada</label>
            <div>
                <input type="text" class="small hour" id="hora_inicio"/> - <input type="text" class="small hour"  id="hora_fin"/>
            </div>
        </dl>
        <dl>
            <div><button id="agregarItinerario" class="small icon i_plus">Agregar Itinerario</button></div>
        </dl>
    </fieldset>
    <fieldset>
        <label>Itinerario</label>
        <div>
            <table>
                <thead>
                    <tr>
                        <th>D&iacute;a</th>
                        <th>Jornada</th>
                        <th style="width: 80px;"></th>
                    </tr>
                </thead>
                <tbody id="itinerarios"></tbody>
            </table>
        </div>
    </fieldset>
    <div style="float: right;">
        <button type="submit" class="save small icon i_cassette">Guardar</button>
    </div>
</form>
{/block}